package org.bdware.doip.core.model.metadata;

import java.util.ArrayList;
import java.util.List;

public class SearchResult {
    public int size;
    public List<Object> results;

    public SearchResult(int size, List<Object> results) {
        this.size = size;
        this.results = results;
    }

    public SearchResult(){
        size = 0;
        results = new ArrayList<>();
    }

    public void addItem(Object o){
        results.add(o);
        size = results.size();
    }
}
